<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="/hykj/css/header.css" />
<title>list AboutUs</title>

<script type="text/javascript">
function changeUrl() {
	
	var x = document.getElementsByName("aboutus");
	var url = "";
	var ur = "";
	for (i = 0; i < x.length; i++) {
		if (x[i].checked) {
			url += (x[i].value +",");
		}
		ur = url.substring(0,(url.lastIndexOf(",")));
	}
	document.getElementById("delete").action="/hykj/admin/aboutus/deleteAboutUs?newId=(" + ur + ")";
	
}

function deleteAboutUs() {
	document.getElementById("delete").submit();
}
</script>
</head>

<body>
<center><jsp:include page="/admin/head.jsp"><jsp:param
		name="menu" value="about"></jsp:param></jsp:include>
<table width="945" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td align="left" valign="top" width="655" >
			<table border="0" style="word-break: break-all">

	<tr>
		<td bgcolor="#323232" align="left"><a href="/hykj/admin/aboutus/insertAboutUs.jsp">新增</a></td>
		<td bgcolor="#323232" align="right"><input type="button" onclick="deleteAboutUs()" value="删除"></input></td>
	</tr>

	<tr height="30">
		<td colspan="2" width="655" align="left" valign="top"><c:set
			var="allnewslist" value="${requestScope.NewsList}" /> <c:if
			test="${empty allnewslist}">没有商品</c:if> <c:if
			test="${!empty allnewslist}">
			<form id="delete" action="" name="deleteform" method="post">
			<table width="655" border="0" cellspacing="0" cellpadding="5">
				<tr>
					<td bgcolor="#323232" bgcolor="#f5f5f5" align="left">标题</td>
					<td bgcolor="#323232" bgcolor="#f5f5f5" align="right">时间</td>
				</tr>

				<c:forEach var="onenews" items="${allnewslist}">

					<tr>
						<c:if test="${!empty onenews}">
							<td align="left"><input onclick="changeUrl()"
								type="checkbox" name="aboutus" value=${onenews.id } /><a
								href="/hykj/admin/aboutus/viewAboutUs?newId=${onenews.id }"
								target="_blank">标题：${onenews.title}</a></td>
							<td align="right">时间：${onenews.date}<br>



							</td>
						</c:if>

					</tr>

				</c:forEach>
				<tr>
					<td bgcolor="#323232" colspan="2">${requestScope.pageBar.pageLink}</td>
				</tr>

			</table>
			</form>
		</c:if></td>
	</tr>
</table>
		</td>
		<td width="280" valign="top">
			<table width="280" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td height="5"></td>
			</tr>
			<tr>
				<td width="280" height="42" style="font-weight:bold; background-color:#323232; text-align:left; text-indent:30px;">分类导航&nbsp;&nbsp;Site Menu
				</td>
			</tr>
			<tr>
				<td align="left" width="280" 
				style="background-color:#323232;
				 border-style:solid; 
				 border-top-width:thin; 
				 border-bottom-color:#323232;
				 border-left-color:#323232;
				 border-right-color:#323232;
				 padding:8px;
				 ">
				&nbsp;&nbsp;&nbsp;<a
					href="/hykj/admin/aboutus/getCategoryAboutUs?category=0">公司介绍</a><br />
				&nbsp;&nbsp;&nbsp;<a
					href="/hykj/admin/aboutus/getCategoryAboutUs?category=1">大纪事</a><br />
				&nbsp;&nbsp;&nbsp;<a
					href="/hykj/admin/aboutus/getCategoryAboutUs?category=2">企业文化</a><br />
				&nbsp;&nbsp;&nbsp;<a
					href="/hykj/admin/aboutus/getCategoryAboutUs?category=3">合作伙伴</a><br />
				&nbsp;&nbsp;&nbsp;<a
					href="/hykj/admin/aboutus/getCategoryAboutUs?category=4">加入我们</a><br />
				</td>
			</tr>
			
			<tr>
				<td height="5"></td>
			</tr>
			
		</table>
		</td>
	</tr>
</table>



<jsp:include page="/admin/foot.jsp" /></center>
</body>
</html>